<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>漂流记 | 主页</title>

    <!-- Font awesome -->
    <link href="static/css/font-awesome.css" rel="stylesheet">
    <!-- Bootstrap -->
    <link href="static/css/bootstrap.css" rel="stylesheet">
    <!-- SmartMenus jQuery Bootstrap Addon CSS -->
    <link href="static/css/jquery.smartmenus.bootstrap.css" rel="stylesheet">
    <!-- Product view slider -->
    <link rel="stylesheet" type="text/css" href="static/css/jquery.simpleLens.css">
    <!-- slick slider -->
    <link rel="stylesheet" type="text/css" href="static/css/slick.css">
    <!-- price picker slider -->
    <link rel="stylesheet" type="text/css" href="static/css/nouislider.css">
    <!-- Theme color -->
    <link id="switcher" href="static/css/theme-color/default-theme.css" rel="stylesheet">
    <!-- <link id="switcher" href="static/css/theme-color/bridge-theme.css" rel="stylesheet"> -->
    <!-- Top Slider CSS -->
    <link href="static/css/sequence-theme.modern-slide-in.css" rel="stylesheet" media="all">

    <!-- Main style sheet -->
    <link href="static/css/style.css" rel="stylesheet">

    <!-- Google Font -->
    <link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
    <link href='https://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>


    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->


</head>
<body>
<!-- wpf loader Two -->
 <!--  <div id="wpf-loader-two">          
      <div class="wpf-loader-two-inner">
        <span>Loading</span>
      </div>
    </div>  -->
<!-- SCROLL TOP BUTTON -->
<a class="scrollToTop" href="#"><i class="fa fa-chevron-up"></i></a>
<!-- END SCROLL TOP BUTTON -->

<!-- Start header section -->
<header id="aa-header">
    <!-- start header top  -->
    <div class="aa-header-top">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="aa-header-top-area">
                        <!-- start header top left -->
                        <div class="aa-header-top-left">
                            <!-- start language -->
                            <div class="aa-language">
                                <div class="dropdown">
                                    <a class="btn dropdown-toggle" href="#" type="button" id="dropdownMenu1"
                                       data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                                        <img src="static/img/flag/english.jpg" alt="english flag">ENGLISH
                                        <span class="caret"></span>
                                    </a>
                                    <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                                        <li><a href="#"><img src="static/img/flag/french.jpg" alt="">FRENCH</a></li>
                                        <li><a href="#"><img src="static/img/flag/english.jpg" alt="">ENGLISH</a></li>
                                    </ul>
                                </div>
                            </div>
                            <!-- / language -->

                            <!-- start currency -->
                            <div class="aa-currency">
                                <div class="dropdown">
                                    <a class="btn dropdown-toggle" href="#" type="button" id="dropdownMenu1"
                                       data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                                        <i class="fa fa-usd"></i>USD
                                        <span class="caret"></span>
                                    </a>
                                    <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                                        <li><a href="#"><i class="fa fa-euro"></i>EURO</a></li>
                                        <li><a href="#"><i class="fa fa-jpy"></i>YEN</a></li>
                                    </ul>
                                </div>
                            </div>
                            <!-- / currency -->
                            <!-- start cellphone -->
                            <div class="cellphone hidden-xs">
                                <p><span class="fa fa-phone"></span>00-62-658-658</p>
                            </div>
                            <!-- / cellphone -->
                        </div>
                        <!-- / header top left -->
                        <div class="aa-header-top-right">
                            <ul class="aa-head-top-nav-right">
                                <li><a href="" data-toggle="modal" data-target="#login-modal">登录</a></li>
                                <li class="hidden-xs"><a href={{ url_for("register") }}>注册</a></li>
                           <!--      <li class="hidden-xs"><a href={{ url_for("logout") }}>注销 </a></li> -->
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- / header top  -->
    <!-- start header bottom  -->
    <div class="aa-header-bottom">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <div class="aa-header-bottom-area">
                        <!-- logo  -->
                        <div class="aa-logo">
                            <!-- Text based logo -->
                            <a href="../">
                                <!--span class="fa fa-shopping-cart"></span-->
                                <!-- <p>去<strong>旅行</strong> <span>在线付款交易平台</span></p> -->
                                <p>漂<strong>流记</strong> <span>二手书籍交易平台</span></p>
                            </a>
                            <!-- img based logo -->
                            <!-- <a href="index"><img src="static/img/logo.jpg" alt="logo img"></a> -->
                        </div>
                        <!-- / logo  -->

                        <!-- search box -->
                        <div class="aa-search-box">
                            <form action="" method="POST">
                                {{ goodform.hidden_tag() }}
                                {{ goodform.bookname(size = 30) }}
                                <button type="submit" name="key" value="query"><span class="fa fa-search"></span>
                                </button>
                            </form>
                        </div>
                        <!-- / search box -->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- / header bottom  -->
</header>
<!-- / header section -->
<!-- menu -->
<section id="menu">
    <div class="container">
        <div class="menu-area">
            <!-- Navbar -->
            <div class="navbar navbar-default" role="navigation">
                <div class="navbar-header">
                </div>
                <div class="navbar-collapse collapse">
                    <!-- Left nav -->
                    <ul class="nav navbar-nav">
                        <li><a href="tourist_index"></a></li>
                        <li><a href="contact"></a></li>
                    </ul>
                </div><!--/.nav-collapse -->
            </div>
        </div>
    </div>
</section>
<!-- / menu -->
<!-- Start slider -->
<section id="aa-slider">
    <div class="aa-slider-area">
        <div id="sequence" class="seq">
            <div class="seq-screen">
                <ul class="seq-canvas">
                    <!-- single slide item -->
                    <li>
                        <div class="seq-model">
                            <img src="static/picture/book1.jpg" width="1920" height="700">
                        </div>
                        <div class="seq-title">
                            <span data-seq>世界最美图书馆</span>
                            <h2 data-seq>>>天津滨海图书馆<<</h2>
                            <!-- <p data-seq>“让图书馆成为社交空间”</p> -->
                        </div>
                    </li>
                    <!-- single slide item -->
                    <li>
                        <div class="seq-model">
                            <img src="static/picture/book2.jpg" width="1920" height="700">
                        </div>
                        <div class="seq-title">
                            <span data-seq>世界最美图书馆</span>
                            <h2 data-seq>>>瑞士·圣加伦修道院图书馆  <<</h2>
                        </div>
                    </li>
                    <!-- single slide item -->
                    <li>
                        <div class="seq-model">
                            <img src="static/picture/book3.jpg" width="1920" height="700">
                        </div>
                        <div class="seq-title">
                            <span data-seq>世界最美图书馆</span>
                            <h2 data-seq>>> 法国·巴黎国立图书馆 <<</h2>
                        </div>
                    </li>
                    <!-- single slide item -->
                    <li>
                        <div class="seq-model">
                            <img src="static/picture/book4.jpg" width="1920" height="700">
                        </div>
                        <div class="seq-title">
                            <span data-seq>世界最美图书馆</span>
                            <h2 data-seq>>> 布拉格捷克国家图书馆 <<</h2>
                        </div>
                    </li>
                    <!-- single slide item -->
                    <li>
                        <div class="seq-model">
                            <img src="static/picture/book5.jpg" width="1920" height="700">
                        </div>
                        <div class="seq-title">
                            <span data-seq>世界最美图书馆</span>
                            <h2 data-seq>>> 纽约公共图书馆 <<</h2>
                        </div>
                    </li>
                </ul>
            </div>
            <!-- slider navigation btn -->
            <fieldset class="seq-nav" aria-controls="sequence" aria-label="Slider buttons">
                <a type="button" class="seq-prev" aria-label="Previous"><span class="fa fa-angle-left"></span></a>
                <a type="button" class="seq-next" aria-label="Next"><span class="fa fa-angle-right"></span></a>
            </fieldset>
        </div>
    </div>
</section>
<!-- / slider -->
<!-- Products section -->
<section id="aa-product">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="row">
                    <div class="aa-product-area">
                        <div class="aa-product-inner">
                            <!-- start prduct navigation -->
                            <ul class="nav nav-tabs aa-products-tab">
                                <li class="active"><a href="#literature" data-toggle="tab">文学</a></li>
                                <li><a href="#knowledge" data-toggle="tab">文化</a></li>
                                <li><a href="#life" data-toggle="tab">生活</a></li>
                                <li><a href="#management" data-toggle="tab">经管</a></li>
                                <li><a href="#tech" data-toggle="tab">科技</a></li>
                                 <li><a href="#wanted" data-toggle="tab">求购</a></li>
                            </ul>
                            <!-- Tab panes -->
                            <div class="tab-content">
                                <!-- Start literature books category -->
                                <div class="tab-pane fade in active" id="literature">
                                    <ul class="aa-product-catg" method="POST">
                                         {% if query %}
                                            {% for Q in query %}
                                                <!--div class="aa-blog-info">{{ _ }}</div-->
                                                <li>
                                                    <figure>
                                                        <br>{{ Q.3 }}</br>
                                                            <img src="{{Q.9}}" width="200"
                                                                 height="250"></a>
                                                            <a class="aa-add-card-btn" href="tourist_book_detail/{{ Q.1 }}"><span class="fa fa-shopping-cart"></span>详细说明</a>
                                                        <figcaption>
                                                            <h4 class="aa-product-title"><a href="#">{{ Q.2 }}</a></h4>
                                                            <span class="aa-product-price">￥{{ Q.6 }}</span>
                                                        </figcaption>
                                                    </figure>
                                                </li>
                                            {% endfor %}
                                        {% endif %}

                                        {% for literature in literatures %}
                                            <li>
                                                <figure>
                                                    <br>{{ literature.3 }}</br>
                                                    <img src="{{literature.9}}" width="200" height="250"></a>
                                                    <a class="aa-add-card-btn" href="tourist_book_detail/{{ literature.1 }}"><span class="fa fa-shopping-cart"></span>详细说明</a>
                                                    <figcaption>
                                                        <h4 class="aa-product-title"><a href="#">{{ literature.2 }}</a></h4>
                                                        <span class="aa-product-price">￥{{ literature.6 }}</span>
                                                    </figcaption>
                                                </figure>
                                            </li>
                                        {% endfor %}
                                    </ul>
                                </div>
                                <!-- / literature books category -->

                                <!-- start knowledge book category -->
                                <div class="tab-pane fade" id="knowledge">
                                    <ul class="aa-product-catg">
                                        <!-- start single product item -->
                                        {% for knowledge in knowledges %}
                                              <li>
                                                <figure>
                                                    <br>{{ knowledge.3 }}</br><img src="{{knowledge.9}}" width="200" height="250"></a>
                                                    <a class="aa-add-card-btn"
                                                       href="tourist_book_detail/{{ knowledge.1 }}"><span
                                                            class="fa fa-shopping-cart"></span>详细说明</a>
                                                    <figcaption>
                                                        <h4 class="aa-product-title"><a href="#">{{ knowledge.2 }}</a></h4>
                                                        <span class="aa-product-price">￥{{ knowledge.6 }}</span>
                                                    </figcaption>
                                                </figure>
                                            </li>
                                        {% endfor %}
                                    </ul>
                                </div>
                                <!-- / knowledge book  category -->

                                <!-- start life book category -->
                                <div class="tab-pane fade" id="life">
                                    <ul class="aa-product-catg">
                                        <!-- start single product item -->
                                        {% for life in lifes %}
                                              <li>
                                                <figure>
                                                    <br>{{ life.3 }}</br><img src="{{life.9}}" width="200" height="250"></a>
                                                    <a class="aa-add-card-btn"
                                                       href="tourist_book_detail/{{ life.1 }}"><span
                                                            class="fa fa-shopping-cart"></span>详细说明</a>
                                                    <figcaption>
                                                        <h4 class="aa-product-title"><a href="#">{{ life.2 }}</a></h4>
                                                        <span class="aa-product-price">￥{{ life.6 }}</span>
                                                        <!--<span class="aa-product-price"><del>$65.50</del></span>-->
                                                    </figcaption>
                                                </figure>
                                            </li>
                                        {% endfor %}
                                    </ul>
                                </div>
                                <!-- / life book  category -->

                                <!-- start mangement book category -->
                                <div class="tab-pane fade" id="management">
                                    <ul class="aa-product-catg">
                                        <!-- start single product item -->
                                        {% for management in managements %}
                                              <li>
                                                <figure>
                                                    <br>{{ management.3 }}</br><a><img src="{{management.9}}" width="200" height="250"></a>
                                                    <a class="aa-add-card-btn"
                                                       href="tourist_book_detail/{{ management.1 }}"><span
                                                            class="fa fa-shopping-cart"></span>详细说明</a>
                                                    <figcaption>
                                                        <h4 class="aa-product-title"><a href="#">{{ management.2 }}</a></h4>
                                                        <span class="aa-product-price">￥{{ management.6 }}</span>
                                                        <!--<span class="aa-product-price"><del>$65.50</del></span>-->
                                                    </figcaption>
                                                </figure>
                                            </li>
                                        {% endfor %}
                                    </ul>
                                </div>
                                <!-- / management book  category -->

                                <!-- start tech book category -->
                                <div class="tab-pane fade" id="tech">
                                    <ul class="aa-product-catg">
                                        <!-- start single product item -->
                                        {% for tech in techs %}
                                              <li>
                                                <figure>
                                                    <br>{{ tech.3 }}</br>
                                                    <a><img src="{{tech.9}}" width="200" height="250"></a>
                                                    <a class="aa-add-card-btn"
                                                       href="tourist_book_detail/{{ tech.1 }}"><span
                                                            class="fa fa-shopping-cart"></span>详细说明</a>
                                                    <figcaption>
                                                        <h4 class="aa-product-title"><a href="#">{{ tech.2 }}</a></h4>
                                                        <span class="aa-product-price">￥{{ tech.6 }}</span>
                                                        <!--<span class="aa-product-price"><del>$65.50</del></span>-->
                                                    </figcaption>
                                                </figure>
                                            </li>
                                        {% endfor %}
                                    </ul>
                                </div>
                                <!-- / tech book  category -->

                                <!-- start wanted book category -->
                                <div class="tab-pane fade" id="wanted">
                                    <ul class="aa-product-catg">
                                        <!-- start single product item -->
                                        {% for wanted in wanteds %}
                                              <li>
                                                <figure>
                                                    <br>{{ wanted.3 }}</br><img src="{{wanted.9}}" width="200" height="250"></a>
                                                    <a class="aa-add-card-btn"
                                                       href="buyer_book_detail/{{ wanted.1 }}"><span
                                                            class="fa fa-shopping-cart"></span>详细说明</a>
                                                    <figcaption>
                                                        <h4 class="aa-product-title"><a href="#">{{ wanted.2 }}</a></h4>
                                                        <span class="aa-product-price">￥{{ wanted.6 }}</span>
                                                    </figcaption>
                                                </figure>
                                            </li>
                                        {% endfor %}
                                    </ul>
                                </div>
                                <!-- / wanted book  category -->

                            </div><!-- / quick view modal -->
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Login Modal -->
<div class="modal fade" id="login-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4>Login</h4>
                <form class="aa-login-form" action="" method="post" novalidate>
                    <p>{{ logform.username.label }}<span>*</span> {{ logform.username }} {{ logform.username.errors.0 }}</p>
                    <p>{{ logform.password.label }}<span>*</span> {{ logform.password }} {{ logform.password.errors.0 }}</p>
                    <input type="submit" name="key" value="login" class="aa-browse-btn">
                </form>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="static/js/bootstrap.js"></script>
<!-- SmartMenus jQuery plugin -->
<script type="text/javascript" src="static/js/jquery.smartmenus.js"></script>
<!-- SmartMenus jQuery Bootstrap Addon -->
<script type="text/javascript" src="static/js/jquery.smartmenus.bootstrap.js"></script>
<!-- To Slider JS -->
<script src="static/js/sequence.js"></script>
<script src="static/js/sequence-theme.modern-slide-in.js"></script>
<!-- Product view slider -->
<script type="text/javascript" src="static/js/jquery.simpleGallery.js"></script>
<script type="text/javascript" src="static/js/jquery.simpleLens.js"></script>
<!-- slick slider -->
<script type="text/javascript" src="static/js/slick.js"></script>
<!-- Price picker slider -->
<script type="text/javascript" src="static/js/nouislider.js"></script>
<!-- Custom js -->
<script src="static/js/custom.js"></script>

</body>
</html>